// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
var uploadIdcard = function(mythis,urls){
    axios.post('/gateway/facepp-api/ocridcard', '{"imageUrl":"'+urls+'","requestId":"'+mythis.random_string(32)+'"}', {
        headers: {
          'Content-Type': 'application/json;charset=UTF-8'
        }}
      ).then(res=>{
        //回填
        if(res.data.success){
          
          alert('身份证上传成功')
        } else{
          alert('身份证上传失败')
        }
      }).catch(res=>{
          console.log(err);
      })
}


/* eslint-disable no-new */
export default uploadIdcard
